package com.miaosha.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.miaosha.entity.Permission;
import com.miaosha.service.PermissionService;
import com.miaosha.mapper.PermissionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission>
    implements PermissionService{
    @Autowired
    PermissionMapper permissionMapper;
    @Override
    public List<String> getModuleByUserId(Long userId) {
        return permissionMapper.getModuleByUserId(userId);
    }
}




